﻿using System.Windows;
using Phoenix;

namespace HelloWorld.ViewModels.Home
{
    public class PromptCloseViewModel : ViewModelBase
    {
        protected override void OnClosing(Phoenix.Frames.RequestClosingEventArgs eventArgs)
        {
            if (MessageBox.Show("Do you want to close this window?", "CLose?", MessageBoxButton.YesNo) == MessageBoxResult.No)
                eventArgs.Cancel = true;
        }
    }
}